﻿// Copyright (c) Microsoft Corporation. All rights reserved.

using System;
using System.Web;
using PivotServerTools;

namespace PeopleSearchPivot
{
    /// <summary>
    /// Handle a request for any CXML file. See the associated entry in web.config
    /// This handler finds all implementations of CollectionFactoryBase in any assembly in the bin folder.
    /// To add your own collection using this method, add a class that implements CollectionFactoryBase
    ///  into the CollectionFactories assembly.
    /// </summary>
    public class CxmlHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            PivotHttpHandlers.ServeCxml(context);
        }

        public bool IsReusable
        {
            get { return true; }
        }
    }

 
    public class DzcHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            PivotHttpHandlers.ServeDzc(context);
        }

        public bool IsReusable
        {
            get { return true; }
        }
    }


    public class ImageTileHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            PivotHttpHandlers.ServeImageTile(context);
        }

        public bool IsReusable
        {
            get { return true; }
        }
    }


    public class DziHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            PivotHttpHandlers.ServeDzi(context);
        }

        public bool IsReusable
        {
            get { return true; }
        }
    }


    public class DeepZoomImageHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            PivotHttpHandlers.ServeDeepZoomImage(context);
        }

        public bool IsReusable
        {
            get { return true; }
        }
    }

}
